package com.bsierp.business.pojo;

/**
 * ProcessHistoryId entity. @author MyEclipse Persistence Tools
 */

public class ProcessHistoryId implements java.io.Serializable {

    // Fields

    private Profession profession;
    private String processIdentify;

    // Constructors

    /** default constructor */
    public ProcessHistoryId() {
    }

    /** full constructor */
    public ProcessHistoryId(Profession profession, String processIdentify) {
        this.profession = profession;
        this.processIdentify = processIdentify;
    }

    // Property accessors

    public Profession getProfession() {
        return this.profession;
    }

    public void setProfession(Profession profession) {
        this.profession = profession;
    }

    public String getProcessIdentify() {
        return this.processIdentify;
    }

    public void setProcessIdentify(String processIdentify) {
        this.processIdentify = processIdentify;
    }

    public boolean equals(Object other) {
        if ((this == other))
            return true;
        if ((other == null))
            return false;
        if (!(other instanceof ProcessHistoryId))
            return false;
        ProcessHistoryId castOther = (ProcessHistoryId) other;

        return ((this.getProfession() == castOther.getProfession()) || (this
                .getProfession() != null
                && castOther.getProfession() != null && this.getProfession()
                .equals(castOther.getProfession())))
                && ((this.getProcessIdentify() == castOther
                        .getProcessIdentify()) || (this.getProcessIdentify() != null
                        && castOther.getProcessIdentify() != null && this
                        .getProcessIdentify().equals(
                                castOther.getProcessIdentify())));
    }

    public int hashCode() {
        int result = 17;

        result = 37
                * result
                + (getProfession() == null ? 0 : this.getProfession()
                        .hashCode());
        result = 37
                * result
                + (getProcessIdentify() == null ? 0 : this.getProcessIdentify()
                        .hashCode());
        return result;
    }

}